from django.urls import path
from .views import *
urlpatterns=[
    path('persons/', PersonListView.as_view(), name='person_list'),
    path('person/<int:pk>/', PersonDetailView.as_view(), name='person_detail'),
    path('person/form/', PersonFormView.as_view(), name='person_form'),
    path('person/new/', PersonCreateView.as_view(), name='person_create'),
    path('persons/<int:pk>/edit', PersonUpdateView.as_view(), name='person_update'),
    path('persons/<int:pk>/delete', PersonDeleteView.as_view(), name='person_delete'),
    path('persons/mother/<int:year>/<int:month>/', PersonMonthArchiveView.as_view(), name='person_month_archive'),
    path('persons/week/<int:year>/week/<int:week>/', PersonWeekArchiveView.as_view(), name='person_week_archive'),
]